gdk: Unset the DrawingContext <-> cairo_t link on dispose
authorEmmanuele Bassi <ebassi@gnome.org>
Sun, 12 Jun 2016 17:55:34 +0000 (18:55 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sun, 12 Jun 2016 17:55:34 +0000 (18:55 +0100)
commit0ca59bf85a13b8dc5b516d311df9c37e43566c1f
treeb8ac0470fcc90d25f9072932a4c026ce47ba3a9b
parent222bcf1a71dbd879fe39bfb9239c093b1da6bb4d
gdk: Unset the DrawingContext <-> cairo_t link on dispose

When disposing a GdkDrawingContext we should unset the association
between the instance and the Cairo context; this avoids stale pointers
in case a reference that has acquired on the Cairo context survives the
lifetime of the GdkDrawingContext.
gdk/gdkdrawingcontext.c